async function main() {
  const inquirer = await import('inquirer');
  
  // 现在你可以使用inquirer来创建和处理交互式命令行提示了
  const questions = [
      {
          type: 'input',
          name: 'username',
          message: 'What is your username?',
      },
  ];
  
  try {
      const answers = await inquirer.default.prompt(questions);
      console.log(`Hello, ${answers.username}!`);
  } catch (error) {
      console.error('An error occurred:', error);
  }
}

// 调用主函数启动应用
main();